Ext.define('planner.store.Jobs', {
	extend: 'Ext.data.Store',
	storeId: 'Jobs',
	model: 'planner.model.Jobs',
	proxy: {        
		type: 'ajax',
		root: 'jobs',        
		url : 'data/jobs/',        
		reader: {
			type: 'json', 
			root: 'data_container', 
			successProperty: 'success'
		},
		writer: {
			type: 'json', 
			root: 'data_container'
		},
		method: 'POST',
		api: {
		    create  : 'data/jobs/add/',
		    read    : 'data/jobs/select/',
		    update  : 'data/jobs/update/',
		    destroy : 'data/jobs/remove/'
		}
	},
	autoLoad: true,
	autoSync: true,
	belongsTo: 'planner.store.Users',
/*	data : [
		{key: 1, keyDeveloper: -1, type: '', name: 'kuzb1'},
		{key: 2, keyDeveloper: -1, type: '', name: 'kuzb2'},
		{key: 3, keyDeveloper: -1, type: '', name: 'kuzb3'},
		{key: 4, keyDeveloper: -1, type: '', name: 'kuzb4'},
    ]*/
});
 
